package route

import (
	"svvenus/vgame/logic"
	"svvenus/vpub/worker"
	"svvenus/zlog"
)

// ScheduleRegister 定时触发注册
func ScheduleRegister() {

	worker.ScheduleWorkerMainSet(ScheduleGame)

	//worker.ScheduleWorkerBind(worker.PerSecond, SchedulePerSecondTest)
	//worker.ScheduleWorkerBind(worker.PerSecond10, SchedulePerSecond10Test)
	//worker.ScheduleWorkerBind(worker.PerMinute, SchedulePerMinuteTest)
	//worker.ScheduleWorkerBind(worker.OClock, ScheduleOClockTest)

	//检测全服邮件
	worker.ScheduleWorkerBind(worker.PerMinute, logic.SchedulePerMinuteServerMail)

	worker.ScheduleWorkerBind(worker.PerMinute, SchedulePerMinutePlayers)
	worker.ScheduleWorkerBind(worker.OClock0, ScheduleOClock0Players)
	worker.ScheduleWorkerBind(worker.OClock5, ScheduleOClock5Players)

}

// ScheduleGame 主循环事件
func ScheduleGame() {

}

// SchedulePerSecondTest 秒事件
func SchedulePerSecondTest() {
	//zlog.Debug("SchedulePerSecondTest")
}

// SchedulePerSecond10Test 10秒事件
func SchedulePerSecond10Test() {
	//zlog.Debug("SchedulePerSecond10Test")
	//zlog.Debug(len(logic.MapPlayer))
}

// SchedulePerMinuteTest 分钟事件
func SchedulePerMinuteTest() {
	zlog.Debug("ScheduleTestPerMinute")
}

// ScheduleOClockTest 0点刷新
func ScheduleOClockTest() {
	zlog.Debug("ScheduleOClockTest")
}
